﻿using System;
using Microsoft.Practices.Prism.Modularity;
using System.ComponentModel.Composition;
using Microsoft.Practices.Prism.Regions;
using BizControl.Presentation.Infrastructure.Constants;
using Microsoft.Practices.Prism.MefExtensions.Modularity;

namespace BizControl.Presentation.PersonMarkEditModule
{
  [ModuleExport(typeof(PersonMarkEditModule))]
  public class PersonMarkEditModule : IModule
  {
    private IRegionManager _regionManager;

    [ImportingConstructor]
    public PersonMarkEditModule(IRegionManager regionManager)
    {
      _regionManager = regionManager;
    }

    #region IModule Members

    public void Initialize()
    {
      _regionManager.RegisterViewWithRegion(ShellRegionNames.MainContentRegion, typeof(Views.PersonMarkEditView));
    }

    #endregion
  }
}
